/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package services;

import dao.impl.GroupDAOImpl;
import dao.impl.UserDAOImpl;

/**
 *
 * @author Valentina
 */
public class GroupServicesImpl implements GroupServicesIntf{

    @Override
    public void delete(Long id) {
        
        GroupDAOImpl groupDAOImpl = new GroupDAOImpl();
        UserDAOImpl  userDAOImpl = new UserDAOImpl();
        
        groupDAOImpl.delete(id);
        userDAOImpl.resetGroup(id);
    }    
}